<?php

use yii\db\Schema;
use yii\db\Migration;

class m170428_073236_add_mob_video_creative_cover_field extends Migration
{
    public function up()
    {
        return $this->addColumn('{{%creative}}', 'pic_url', 'varchar(1024) not null default "" comment "cover pir url" after duration');
    }

    public function down()
    {
        echo "m170428_073236_add_mob_video_creative_cover_field cannot be reverted.\n";

        return false;
    }

    /*
    // Use safeUp/safeDown to run migration code within a transaction
    public function safeUp()
    {
    }

    public function safeDown()
    {
    }
    */
}
